Skip to main content

TsgDXFEntity

Unit:TsgDXFEntity

Description

The TsgDXFEntity class is the base class for all entities classes. It contains the base properties and methods, overridden in their descendants. Through this class methods and properties you can do all common operations. But entity specific operations, should be handled though the methods and properties of class of that entity.

Syntax

TsgDXFEntity = class(TsgInterfacedObject, IsgListOfEntities)

Properties

PropertiesDescription
BoxThe property determines the 3d box embraced the entity.
ColorThe property gets or sets entity color.
ColorCADThe property gets or sets a color for drawing entities.
ComplexThe property determines whether a entity is populated with child entities.
ConverterThe property returns the TsgDXFConverter class object.
CountThe property indicates the total number of child entities.
EntitiesThe property lists all child entities.
EntTypeThe property indicates type of an entity.
HandleThe property is used for finding entity links.
LayerThe property points to layer, containing given primitive if this layer is given.
LineTypeThe property sets and gets line type for an entity.
LineTypeScaleThe property sets and gets the Linetype scale.
LineWeightThe property sets or gets line weight in millimeters.
PaperSpaceThe property indicates Model Space and Paper Space entity segregation.
SrcEndThe property indicates end position of the entity description in the source CAD file.
SrcStartThe property indicates start position of the entity description in the source CAD file.
VisibilityThe property sets and gets entities visibility.
VisibleThe property determines whether the component appears onscreen.

Methods

MethodsDescription
AddEntityThe method adds a new child entity.
AssignEntityThe method copies properties of source entity to current entity.
ClearThe method deletes all child entities.
CloneThe method copies properties of source entity to current entity (include Handle).
CreateThe method creates and initializes a new TsgDXFEntity object.
DeleteEntityThe method deletes entity specified by its index.
DrawThe method generates the OnDraw event.
EntNameThe method returns an entity name.
FindEntByNameThe method finds the entity by a given name.
FindEntByHandleThe method finds the entity by a given handle.
GetBoxPointsThe method is used in drawing cycle for fast checking whether the entity must be drawn.
GetExtDataThe method gets extended data associated with the entity.
GetThicknessThe method returns entity's thickness.
IndexOfEntityThe method returns index of entity.
IndexOfHandleThe method returns index of handle.
IndexOfNameThe method returns index of entity by its name.
InsertEntityThe method adds entity to the list of child entities at the position specified by AIndex.
RemoveEntityThe method deletes a specified entity.
SetColorThe method sets color of the entity.
SetExtDataThe method associates a specified extended data with the entity.
SetLTypeThe method sets line type of the entity.
SetLWeightThe method sets line weight width of the entity.

Events

EventsDescription
OnDrawThe event occurs when the Draw method is called.